package com.ternnetwork.core.accesscontroll.service;

import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.core.accesscontroll.enums.ResourcesType;

public interface RescRoleService {

	/**
	 * 批量按资源ID与角色ID删除
	 * @param resourcesId
	 * @param deleteRoleIds 角色ID用逗号分隔
	 */
	void deleteBatch(long resourcesId,String deleteRoleIds);
	/**
	 * 批量按资源ID与角色ID添加
	 * @param resourcesId
	 * @param addRoleIds 角色ID用逗号分隔
	 */
	void addBatch(long resourcesId,String addRoleIds);
	
	
	/**
	 * 为角色设置资源
	 * @param roleId
	 * @param resourcesType
	 * @param resourcesIds
	 * @return
	 */
	BaseResponse update(Long roleId, ResourcesType resourcesType, String resourcesIds);

}
